<style type="text/css">
.page h2.border{
	border-bottom: 1px solid #262B30;
	border-top: 1px solid #262B30;
	padding: 10px 0;
	font-size: 19px;
	margin-bottom:8px;
	color: #fff;
}
</style>

<?php 
$CI =& get_instance();
$CI->load->database();
$CI->load->library("front/header_lib");
$query_pages = $CI->db->get_where('bur_staticpages',array('staticpage_link'=>'design_directory'));
foreach($query_pages->result() as $row_vals)
{
    $title = $row_vals->staticpage_title;
	$metakey_page = $row_vals->staticpage_metakey;
    $metadesc_page = $row_vals->staticpage_metadesc;  
}
$CI->header_lib->display_header_element(array("script"=>array("jquery-1.4.2"),"page_title"=>$title,"metakey_page"=>$metakey_page,"metadesc_page"=>$metadesc_page));

$CI->header_lib->display_header();

$data['products'] = 1 ;
$CI->load->model('Directory_company_model');
//echo $CI->session_user_id;
$count = $CI->Directory_company_model->get_view_count($CI->session_user_id);

$data['view_count'] = $count['view_count'];

$data['lead_count'] = $count['lead_count'];

$listing_active = $CI->Directory_company_model->get_listing_status($CI->session_user_id);
?>
<?php //$this->load->view(TEMPLATE_NAME.'/front/header'); ?>
<?php $left_class['products'] = 1; ?>
<?php //$this->load->view(TEMPLATE_NAME.'/front/directory_guest/panel_left',$left_class); ?>
<div id="container_wrapper">
  <div id="body_container">
    <div class="left_part">
    <?php echo $CI->header_lib->display_panel_left($data);?>
    
      
    </div>
    <div class="right_part">
      <?php
		if ($productType == 'products'){
			$productType__ = '';
		}else{
			$productType__ = $productType;
		}
        if(!empty($services_list)){
        	echo form_open('register/products/'.$productType__  );
            ?>
              <h2 style="border-bottom: 1px solid #262B30;
	border-top: 1px solid #262B30;
	padding: 10px 0;
	font-size: 19px;
	margin-bottom:8px;
	color: #fff;" >services that you offer</h2>
    
    
       <?php if(!empty($notification)){ ?>
        <div style="background-color:#CF118C; color:#FFF; font-size:14px; margin-bottom:5px; padding:5px;">
        <?php echo $notification ?>
        </div>        
        <?php } /*?>
        <div class="height10"></div>
        <h3 class="head03">Ads Type</h3>
        <div class="height10px"></div>
        <div class="div013">
          <ul>
            <?php
           // print_r($services_list);
        foreach($services_list as $key=>$value){
           
           /* if($value['services']=='Type')
          { ?>
           <li>
              <div class="div014">
                <input type="radio" id="services<?php echo $value['id'];  ?>" name="services[]" 
                <?php if(in_array($value['id'] , (array)$company_services)): ?>checked="checked"<?php endif; ?> 
                value="<?php echo $value['id'] ?>">
                </div>
              <div class="div015"><?php echo $value['name'] ?> </div>
              <div class="clear"></div>
            </li>
          <?php //echo  $value['name'];
          }}?>
          </ul></div><?php */?>
          <div class="height10"></div>
        <h3 class="head03">Gender</h3>
        <div class="height10px"></div>
        <div class="div013">
          <ul>
          <?php
            foreach($services_list as $key=>$value){
           if($value['services']=='Gender')
          { ?>
             <li>
              <div class="div014">
                <input type="radio" id="services<?php echo $value['id'];  ?>"name="gender[]"
                <?php if(in_array($value['id'] , (array)$company_services)): ?>checked="checked"<?php endif; ?> 
                value="<?php echo $value['id'] ?>">
                </div>
              <div class="div015"><?php echo $value['name'] ?> </div>
              <div class="clear"></div>
            </li>
        <?php  }}
        ?>
          </ul></div>
          <div class="height10"></div>
          <div>
              <h3 class="head03" style="float:left;width:75px;">Category</h3>
            <div style="float:left;width:450px;">(To update category list or to add more <a href="<?php echo site_url("directory/panel/package");?>">click here.</a>)</div>
            <div class="clear"></div>
          </div>
        <div class="height10px"></div>
        <div class="div013">
          <ul>
          <?php 
          foreach($services_list as $key=>$value){
           if($value['services']=='Category')
          { 
           ?>  <li>
              <div class="div014">
                  <input type="checkbox" name="category[]" disabled="disabled"
                <?php if(in_array($value['id'] , (array)$company_services)): ?>checked="checked"<?php endif; ?> 
                value="<?php echo $value['id'] ?>">
                </div>
              <div class="div015"><?php echo $value['name'] ?> </div>
              <div class="clear"></div>
            </li>
        <?php  }}?>
          </ul></div>
          <div class="height10"></div>
        <h3 class="head03">Hair Color</h3>
        <div class="height10px"></div>
        <div class="div013">
          <ul>
          <?php
          foreach($services_list as $key=>$value){
           if($value['services']=='Hair Color')
          { 
           ?>  <li>
              <div class="div014">
                <input type="checkbox" name="hair_color[]"
                <?php if(in_array($value['id'] , (array)$company_services)): ?>checked="checked"<?php endif; ?> 
                value="<?php echo $value['id'] ?>">
                </div>
              <div class="div015"><?php echo $value['name'] ?> </div>
              <div class="clear"></div>
            </li>
         <?php }}?>
          </ul></div>
          <div class="height10"></div>
        <h3 class="head03">Ethinity</h3>
        <div class="height10px"></div>
        <div class="div013">
          <ul>
          <?php
           foreach($services_list as $key=>$value){
           if($value['services']=='Ethnicity')
          { ?>
             <li>
              <div class="div014">
                <input type="checkbox" name="ethnicity[]"
                <?php if(in_array($value['id'] , (array)$company_services)): ?>checked="checked"<?php endif; ?> 
                value="<?php echo $value['id'] ?>">
                </div>
              <div class="div015"><?php echo $value['name'] ?> </div>
              <div class="clear"></div>
            </li>
        <?php  }
         
        }
        
     
/*	echo form_open('directory/panel/products/'.$productType__  );
		?>
       
     
        <h2 style="border-bottom: 1px solid #262B30;
	border-top: 1px solid #262B30;
	padding: 10px 0;
	font-size: 19px;
	margin-bottom:8px;
	color: #fff;" >services that you offer</h2>
    
       <?php if(!empty($notification)){ ?>
        <div style="background-color:#CF118C; color:#FFF; font-size:14px; margin-bottom:5px; padding:5px;">
        <?php echo $notification ?>
        </div>        
        <?php } ?>
        <?php if(!empty($services_list_print)){ ?>
        <div class="height10"></div>
        <h3 class="head03">public service</h3>
        <div class="height10px"></div>
        <div class="div013">
          <ul>
            <?php foreach($services_list_print as $key=>$value){ ?>
            <li>
              <div class="div014">
                <input type="checkbox" name="services[]" 
                <?php if(in_array($value['id'] , (array)$company_services)): ?>checked="checked"<?php endif; ?> 
                value="<?php echo $value['id'] ?>">
                </div>
              <div class="div015"><?php echo $value['name'] ?> </div>
              <div class="clear"></div>
            </li>
            
            <?php }?>
          </ul>
        </div>
        <div class="height10px"></div>
        <?php } ?>
        <?php if(!empty($services_list_web)){ ?>
        <h3 class="head03">private</h3>
        <div class="height10px"></div>
        <div class="div013">
          <ul>
            <?php foreach($services_list_web as $keys=>$values){ ?>
            <li>
              <div class="div014">
                <input type="checkbox" name="services[]" 
                <?php if(in_array($values['id'] , (array)$company_services)): ?>checked="checked"<?php endif; ?> 
                value="<?php echo $values['id'] ?>">
                </div>
              <div class="div015"><?php echo $values['name'] ?></div>
              <div class="clear"></div>
            </li>
            
            <?php }*/?>
          </ul>
        </div>
        <?php } ?>
        <div class="clear">&nbsp;</div>
      <div class="bright">
			<?php 
            $form_button = array(
              'type'=>'submit',
              'name'=>'submit',
              'value'=>'submit',
              'content'=>'Submit',
            );
            echo form_button($form_button) ?>
            
            
            </div>
      </div>
      
      
        
    </div>
    <div class="clear"></div>
  </div>
</div>

<?php
$CI->load->library("front/footer_lib");
$CI->footer_lib->display_footer();
$CI->footer_lib->display_footer_element();

?>







<?php /*?>
<div class="wright">

	<h2>
<?php 
if(!empty($company_detail['company'])){
	echo $company_detail['company'];
}else{
	echo "Company name not defined yet";
} 
?></h2>
    <h3><?php echo ucfirst($productType); ?> List</h3>
<?php if(!empty($notification)){ ?>
<p class="inform f12 error_message"><?php echo $notification ?></p>
<?php } ?>

<p class="top">Select the <?php echo ucfirst($productType); ?> that you represent form the list below. If you would like something added to any of these lists, simply send us an e-mail at <a href="mailto:info@turnitaround.co.za" >info@turnitaround.co.za</a></p>
<hr>
<?php
if ($productType == 'products'){
    $productType__ = '';
}else{
    $productType__ = $productType;
}
echo form_open('directory/panel/products/'.$productType__  );?>

<?php if(!empty($services_list_print)){ ?>
<div class="height10"></div>
<h3 class="head03">Print Design</h3>
<div class="height10px"></div>
<div class="div013">
    <ul>
    <?php foreach($services_list_print as $key=>$value){ ?>
        <li>
            <div class="div014">
            <input type="checkbox" name="services[]" 
<?php if(in_array($value['id'] , (array)$company_services)): ?>checked="checked"<?php endif; ?> 
value="<?php echo $value['id'] ?>"><?php echo $value['name'] ?>
           </div>
            <div class="div015">Pre-press</div>
            <div class="clear"></div>
        </li>
        <div class="line6"></div>
         <?php }?>
    </ul>
</div>
<div class="height10px"></div>
<?php } ?>
<?php if(!empty($services_list_web)){ ?>
<h3 class="head03">Web Design</h3>
<div class="height10px"></div>
<div class="div013">
    <ul>
    <?php foreach($services_list_web as $keys=>$values){ ?>
        <li>
            <div class="div014"> <input type="checkbox" name="services[]" 
<?php if(in_array($values['id'] , (array)$company_services)): ?>checked="checked"<?php endif; ?> 
value="<?php echo $values['id'] ?>"><?php echo $values['name'] ?></div>
            <div class="div015">Pre-press</div>
            <div class="clear"></div>
        </li>
        <div class="line6"></div>
     <?php }?>   
    </ul>
</div>
<?php } ?>



<div class="box">
<div class="bleft">
</div><!-- bleft -->
<div class="bright">
<?php 
$form_button = array(
  'type'=>'submit',
  'name'=>'submit',
  'value'=>'submit',
  'content'=>'Submit',
);
echo form_button($form_button) ?>


</div><!-- bright -->
<div class="clear"></div>
</div><!-- box -->
<?php echo form_close(); ?>
</div>
<?php */?>
<?php //$this->load->view(TEMPLATE_NAME.'/front/footer'); ?>